package com.xiaoshuidi.cloud.module.member.mapper.comment;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xiaoshuidi.cloud.framework.mybatis.core.mapper.BaseMapperX;
import com.xiaoshuidi.cloud.module.member.controller.admin.comment.vo.CommentPageVO;
import com.xiaoshuidi.cloud.module.member.controller.admin.comment.vo.CommentStatisticsReqVo;
import com.xiaoshuidi.cloud.module.member.controller.admin.comment.vo.CommentStewardPageReqVo;
import com.xiaoshuidi.cloud.module.member.controller.admin.comment.vo.CommentStewardPageVo;
import com.xiaoshuidi.cloud.module.member.controller.app.comment.vo.MemberCommentRespVO;
import com.xiaoshuidi.cloud.module.member.pojo.comment.MemberComment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MemberCommentMapper extends BaseMapperX<MemberComment> {
    List<MemberComment> getCommentStatistics(@Param("req") CommentStatisticsReqVo reqVo);

    IPage<MemberCommentRespVO> getCommentPage(Page<MemberComment> page,@Param("vo") CommentPageVO vo);

    IPage<CommentStewardPageVo> getCommentStewardPage(Page<MemberComment> page,@Param("vo") CommentStewardPageReqVo vo);

    List<MemberCommentRespVO> getListByUserId(@Param("userId") Long userId,@Param("status") Boolean status);

    void updateUserId(@Param("oldUserId")Long oldUserId, @Param("userId")Long userId);
}
